import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class HeaderTitleWidget extends StatelessWidget {
  final String title;
  final void Function()? onTab;
  final bool isSelect;

  HeaderTitleWidget(this.title, this.isSelect,{this.onTab});

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTab,
      child: Container(
        padding: EdgeInsets.only(left: 12, right: 12),
        child: Text(
          title,
          style: TextStyle(
            fontWeight: isSelect?FontWeight.w600:FontWeight.w500,
            color: isSelect?Colors.red:Colors.white,
            fontSize: 16
          ),
        ),
      ),
    );
  }
}
